package gdut.edu.demo03;

/**
 * @Description 测试递归
 * @Author JiaFu
 * @Date 2022/9/7 22:28
 */
public class TestRecursive {

    public static void main(String[] args) {
        print(5);
    }

    public static void print(Integer i) {
        if (i > 0) {
            System.out.println(i);
            print(i - 1);
        }
    }
}
